<script type="text/javascript">
function selectAll(){  
    if ($("#SelectAll").attr("checked")) {  
        $(":checkbox").attr("checked", true);  
    } else {  
        $(":checkbox").attr("checked", false);  
    }  
}
function print()
{
	var sub = document.getElementsByName("keyword[]");
//	alert(sub);
	
	if(confirm('确定要打印？'))
	{

	for(var i=0;i<sub.length;i++)
		{
		if(sub[i].checked)
			{
				$("#frm1").attr("action","/stamp");
				$("#frm1").submit();
			}
		}
	}

}
</script>

 <form id="frm1" action="" method="post" >

	<div><input type="button"onclick="print()" class="sub" value="打印"/></div>
	<table border="0" align="center" width="950px" cellpadding="0" cellspacing="0">
		<tr>
			<td  class="stamp_td" style="width:130px"><span style="margin-left:-70px;"><input type="checkbox" id="SelectAll" onclick="selectAll();" style="margin-right:5px;"/>订单号：</span></td>
			<td class="stamp_td">收件人：</td>  
			<td  class="stamp_td">运输方式：</td>
			<td  class="stamp_td">目的地：</td>
			<td  class="stamp_td">操作：</td>
		</tr>
	<?php echo $mycenter  ?>	 
		
</form>